From: Aleksandr Mezin Date: Fri, 8 Mar 2024 16:30:00 +0000 (+0200) Subject: messageList: Fix `TypeError` in `Message.useBodyMarkup` setter X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e1db7e368f4919d322f0d4f6a11e1d7780e2704f;p=gnome-shell.git messageList: Fix `TypeError` in `Message.useBodyMarkup` setter Setting `useBodyMarkup` to `true` fails with: JS ERROR: TypeError: this.setBody is not a function set useBodyMarkup@resource:///org/gnome/shell/ui/messageList.js:585:14 Fixes: f0e863f529 "messageList: Use GObject properties for Message" Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index ad93594ef..acc503319 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -582,7 +582,7 @@ export const Message = GObject.registerClass({ if (this._useBodyMarkup === enable) return; this._useBodyMarkup = enable; - this.setBody(this._bodyText); + this.body = this._bodyText; this.notify('use-body-markup'); }